package com.sgb.kjwl.model.entity.transport;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.swgk.core.base.model.entity.VideoBean;

import java.util.List;

/**
 * @author: 王彬臣
 * @date: 2021/2/28
 * @Description: 混合类型竞价找车列表
 */
public class MultiTypeCarrierInfo implements MultiItemEntity {
    /**
     * heightHurdle :
     * destCityName : 成都
     * distance : 247180.84
     * dest_province_no : 510000
     * freight : 3333
     * shipDistrictName : 武侯
     * shipProvinceName : 四川
     * weight : 222.33
     * dest_province_name : 四川
     * carLenName : 4.4米
     * destDistrictName : 武侯
     * carNumber : 没有承运车辆
     * shipCityName : 成都
     * destCityNo : 510100
     * shipProvinceNo : 510000
     * carrierNo : 20201216251872
     * shipmentEndTime : 1611158399999
     * shipDistrictNo : 510107
     * shipCityNo : 510100
     * isDump : null
     * carrierId : 1063
     * destDistrictNo : 510107
     * shipmentStartTime : 1608739200000
     * carTypeName : 高栏
     */

    private String heightHurdle;
    private String destCityName;
    private String distance;
    private String dest_province_no;
    private String freight;
    private String shipDistrictName;
    private String shipProvinceName;
    private String weight;
    private String dest_province_name;
    private String carLenName;
    private String destDistrictName;
    private String carNumber;
    private String shipCityName;
    private String destCityNo;
    private String shipProvinceNo;
    private String carrierNo;
    private long shipmentEndTime;
    private String shipDistrictNo;
    private String shipCityNo;
    private Integer isDump;
    private String carrierId;
    private String destDistrictNo;
    private long shipmentStartTime;
    private String carTypeName;
    private String contrctsNumber;

    private Integer  type;
    private List<VideoBean> videoList;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<VideoBean> getVideoList() {
        return videoList;
    }

    public void setVideoList(List<VideoBean> videoList) {
        this.videoList = videoList;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getDest_province_no() {
        return dest_province_no;
    }

    public void setDest_province_no(String dest_province_no) {
        this.dest_province_no = dest_province_no;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getShipDistrictName() {
        return shipDistrictName;
    }

    public void setShipDistrictName(String shipDistrictName) {
        this.shipDistrictName = shipDistrictName;
    }

    public String getShipProvinceName() {
        return shipProvinceName;
    }

    public void setShipProvinceName(String shipProvinceName) {
        this.shipProvinceName = shipProvinceName;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getDest_province_name() {
        return dest_province_name;
    }

    public void setDest_province_name(String dest_province_name) {
        this.dest_province_name = dest_province_name;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getShipCityName() {
        return shipCityName;
    }

    public void setShipCityName(String shipCityName) {
        this.shipCityName = shipCityName;
    }

    public String getDestCityNo() {
        return destCityNo;
    }

    public void setDestCityNo(String destCityNo) {
        this.destCityNo = destCityNo;
    }

    public String getShipProvinceNo() {
        return shipProvinceNo;
    }

    public void setShipProvinceNo(String shipProvinceNo) {
        this.shipProvinceNo = shipProvinceNo;
    }

    public String getCarrierNo() {
        return carrierNo;
    }

    public void setCarrierNo(String carrierNo) {
        this.carrierNo = carrierNo;
    }

    public long getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(long shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public String getShipDistrictNo() {
        return shipDistrictNo;
    }

    public void setShipDistrictNo(String shipDistrictNo) {
        this.shipDistrictNo = shipDistrictNo;
    }

    public String getShipCityNo() {
        return shipCityNo;
    }

    public void setShipCityNo(String shipCityNo) {
        this.shipCityNo = shipCityNo;
    }

    public Integer getIsDump() {
        return isDump;
    }

    public void setIsDump(Integer isDump) {
        this.isDump = isDump;
    }

    public String getCarrierId() {
        return carrierId;
    }

    public void setCarrierId(String carrierId) {
        this.carrierId = carrierId;
    }

    public String getDestDistrictNo() {
        return destDistrictNo;
    }

    public void setDestDistrictNo(String destDistrictNo) {
        this.destDistrictNo = destDistrictNo;
    }

    public long getShipmentStartTime() {
        return shipmentStartTime;
    }

    public void setShipmentStartTime(long shipmentStartTime) {
        this.shipmentStartTime = shipmentStartTime;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getContrctsNumber() {
        return contrctsNumber;
    }

    public void setContrctsNumber(String contrctsNumber) {
        this.contrctsNumber = contrctsNumber;
    }

    @Override
    public int getItemType() {
        if(videoList==null||videoList.size()==0){
            return SingleItemConstant.TYPE_ONE;
        }
        return  SingleItemConstant.TYPE_TWO;
    }
}
